To get the Gumroad sales data the widget needs to access your Gumroad account. To make this possible we need to generate a Gumroad access token.

Privacy is important so the widget will only communicate with Gumroad, your data isn't sent anywhere else.



CREATE A GUMROAD ACCESS TOKEN

1. Log in to https://gumroad.com

2. Navigate to https://gumroad.com/settings/advanced#application-form

3. Create a new Application (you can set any Name and Redirect URI they are not used in the widget)

4. After submit, click "Generate access token" at the bottom of the view

5. Send the access token to your phone so it's easy to copy past it later.



INSTALL SCRIPTABLE APP

1. Download ScriptableApp on your phone https://apps.apple.com/us/app/scriptable/id1405459188?uo=4

2. Open ScriptableApp


INSTALL THE WIDGET CODE USING MACOS

1. Navigate to iCloud Drive

2. Open the "Scriptable" folder

3. Copy paste the "Gumroad Stats.js" file to the "Scriptable" folder


OR, INSTALL THE WIDGET CODE ON IPHONE

1. Open ScriptableApp

2. Tap the plus icon in the top right corner

3. Copy paste the contents of the "Gumroad Stats.js" script and rename your script to Gumroad Stats


ADD THE IOS WIDGET TO THE HOMESCREEN

4. Edit iPhone homescreen

5. Tap the "+" in the top left corner, select "Scriptable", tap "Add widget", tap "Select script"

6. Select "Gumroad Stats" in the "Script" field

7. Copy paste your Gumroad API key to the "Parameter" field

8. You can set "When Interacting" to any action you like. Set it to "Open URL" and choose "https://gumroad.com/dashboard/sales" to automatically open Gumroad Analytics when tapping the widget.

9. Done!